<template>
  <div>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="date" label="发文时间" width="180">
      </el-table-column>
      <el-table-column prop="number" label="发文编号" width="180">
      </el-table-column>
      <el-table-column prop="address" label="操作">
        <template slot-scope="scope">
          <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">查看</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        tableData: [{
          date: '2016-05-02',
          number: '20181109',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-04',
          number: '20181109',
          address: '上海市普陀区金沙江路 1517 弄'
        }, {
          date: '2016-05-01',
          number: '20181109',
          address: '上海市普陀区金沙江路 1519 弄'
        }, {
          date: '2016-05-03',
          number: '20181109',
          address: '上海市普陀区金沙江路 1516 弄'
        }]
      }
    },
     methods: {
      handleEdit(index, row) {
        console.log(index, row);
      },
      handleDelete(index, row) {
        console.log(index, row);
      }
    }
  }

</script>
